﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CourseScheduledTaskAgent
{
    public class Course
    {
        public string CourseName { get; set; }
        public string TeacherName { get; set; }
        public string Classroom { get; set; }
        public int Start { get; set; }//开始
        public int Length { get; set; }//课程长度
        public string Credits { get; set; }//学分
        public string ClassHours { get; set; }//学时
        public string CourseType { get; set; }//理论还是实践
        public bool IsConflict { get; set; }//是否冲突
        public DateTime StartTime { get; set; }//开始时间，用于后台代理
        public DateTime EndTime { get; set; }
        public string Detail//最后显示给用的信息
        {
            get
            {
                if (CourseType != "" && Classroom != "")
                    return CourseName + "[" + CourseType + "]" + "\n@" + Classroom;
                return CourseName;
            }
        }
    }
}
